<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="./Public/Home/css/wddd.css" />
<link rel="stylesheet" href="./Public/Home/css/dz.css"/>
<script src="./Public/Home/js/area.js" type="text/javascript"></script>
<!--头部公共部分调用-->
{{include file="VIEW_PATH/Common/header.php"}}

<!--内容区域开始-->
<div id="box1">
	<!--调用左侧公用-->
    {{include file="VIEW_PATH/Common/left.php"}}
    
	<div class="box-right">
		<div class="right-1">
			<div class="right-dd">
				<span>收货地址管理</span>
			</div>
			<div class="right-dddd"><a href="#">新增收货地址</a></div>
		</div>
		<div class="right-11">
			<table>
				<tr>
					<th style="width:150px ;">姓名</th>
					<th style="width:200px ;">所在区域</th>
					<th style="width:200px ;">详细地址</th>
					<th style="width:100px ;">邮编</th>
					<th style="width:150px ;">手机/电话</th>
					<th style="width:150px ;">操作</th>
				</tr>
				{{foreach from="$adata" value="$v"}}
				<tr style="font-size: 12px;">
					<th style="padding-top:20px;">{{$v['adname']}}</th>
					<th style="padding-top:20px;">{{$v['region']}}</th>
					<th style="padding-top:20px;">{{$v['adresse']}}</th>
					<th style="padding-top:20px;">{{$v['zipcode']}}</th>
					<th style="padding-top:20px;">{{$v['phone']}}</th>
					<th style="padding-top:20px;">
						<a href="{{U('Address/del',array('addid'=>$v['addid']))}}">删除</a>
						<a class="bianji" href="{{U('Address/edit',array('addid'=>$v['addid']))}}">编辑</a>
					</th>
				</tr>
				{{endforeach}}
			</table>
		</div>
	</div>
</div>

<!--内容区域结束-->
<div id='yingchang' style=" display: none; width: 100%;height: 100%; position:fixed;top: 0;left: 0; background: rgba(0,0,0,0.5);">
<div id="tankuang">
	<div class="top">
		<span class="span-1">新增收货地址</span>
		<span class="glyphicon glyphicon-remove" id="clos" style="cursor: pointer; font-size: 20px; float: right; " aria-hidden="true"></span>
	</div>
	<div class="content" style="padding-top: 30px;">
		<form class="form-horizontal" method="post" action="{{U('Address/addd')}}">
			<div class="form-group">
				<label for="input3" class="col-sm-2 control-label">*收获人：</label>
				<div class="col-sm-10">
					<input type="" class="form-control" id="input3" name="adname"  placeholder="收获人">
				</div>
			</div>
			<div class="form-group">
				<label for="input3" class="col-sm-2 control-label">身份证号：</label>
				<div class="col-sm-10">
					<input type="" class="form-control" id="input3" name="adnumber"  placeholder="身份证号">
				</div>
			</div><div class="form-group">
				<label for="input3" class="col-sm-2 control-label">所在地区：</label>
				<div class="col-sm-10">
					<!--<input type="" class="form-control" id="input3"  placeholder="所在地区">-->
						<select name="region[]" id="area1" class="area"></select>
	                    <select name="region[]" id="area2" class="area"></select>
	                    <select name="region[]" id="area3" class="area"></select>
				</div>
			</div><div class="form-group">
				<label for="input3" class="col-sm-2 control-label">*详细地址：</label>
				<div class="col-sm-10">
					<input type="" class="form-control" id="input3" name="adresse" placeholder="详细地址">
				</div> 
			</div><div class="form-group">
				<label for="input3" class="col-sm-2 control-label">*手机号吗：</label>
				<div class="col-sm-10">
					<input type="" class="form-control" id="input3" name="phone"  placeholder="手机号吗">
				</div>
			</div><div class="form-group">
				<label for="input3" class="col-sm-2 control-label">固定电话：</label>
				<div class="col-sm-10">
					<input type="" class="form-control" id="input3" name="telephone"  placeholder="固定电话">
				</div>
			</div><div class="form-group">
				<label for="input3" class="col-sm-2 control-label">邮政编码：</label>
				<div class="col-sm-10">
					<input type="" class="form-control" id="input3" name="zipcode"  placeholder="邮政编码">
				</div>
			</div>
			<div class="form-group" style="padding: 30px 445px;">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">提交</button>
				</div>
			</div>
		</form>
	</div>
</div>
</div>


<script type="text/javascript">
	$(function(){
		//点击显示添加新地址框
		$(".right-dddd").click(function(){
	       $("#yingchang").fadeIn();
	    });
	    //  点击关闭添加框
		$("#clos").click(function(){
		    $("#yingchang").fadeOut();
		});
	//	城市异动选择
		$(function(){
			//初始化方法
			area.init('area');
			//修改的时候默认被选中效果
			area.selected('','','');
		})
		
})		
</script>



<!--尾部区域开始-->
<div style="clear: both;"></div>
<!--调用尾部公用-->
{{include file="VIEW_PATH/Common/end.php"}}
</body>
</html>